//
// Created by Otowa_kotori on 2016/10/4.
//

#include "gtest/gtest.h"
#include "Game/Game.h"
#include "Entities/dummy.h"
#include <memory>
using namespace std;

TEST(basic_test, pointed_entity_test) {
    unique_ptr<Game> g(new Game());
    Actor* dummy = g->entityManager.get<entity::Dummy>();
    dummy->setPos({1,2});
    EXPECT_EQ(g->entityManager.findActorByPos({1,2,0}), dummy);
}